package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 推广大使配置
 * </p>
 *
 * @author 作者
 * @since 2023-08-26
 */
@Getter
@Setter
@TableName("admin_fund_level_config")
@ApiModel(value = "AdminFundLevelConfig对象", description = "推广大使配置")
public class AdminFundLevelConfig extends Model<AdminFundLevelConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("condition")
    private Integer condition;

    @ApiModelProperty("1,2,3,4,5,6")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("等级名称")
    @TableField("level_name")
    private String levelName;

    @ApiModelProperty("平级奖比例")
    @TableField("rate")
    private BigDecimal rate;

    @ApiModelProperty("基金分红比例")
    @TableField("fund_rate")
    private BigDecimal fundRate;

    @ApiModelProperty("加权比例")
    @TableField("weight_rate")
    private BigDecimal weightRate;

    @TableField("fund_amount")
    private BigDecimal fundAmount;

    @TableField("weight_amount")
    private BigDecimal weightAmount;

    @TableField("amount")
    private BigDecimal amount;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
